Skip to main content

mergGKLocalPlayerAuthenticated

Type

message

Summary

Sent to the control that called mergGKAuthenticateLocalPlayer whenever a new local player is authenticated

Syntax

mergGKLocalPlayerAuthenticated <pPlayerID>, <pPlayerAlias>, <pPlayerDisplayName>, <pPlayerUnderAge>

Description

The logged in player in Game Center may be changed if the user closes or suspends your app. Your app should be prepared to handle multiple states for different users based on the player id. In a multi-tasking app this message may be sent more than once.

Parameters

NameTypeDescription

pPlayerID

the ID for the local player.

pPlayerAlias

the alias for the local player.

pPlayerDisplayName

the display name for the local player.

pPlayerUnderAge

true if the player is under age.

Examples

on preOpenStack
if the environment = "mobile" then
mergGKAuthenticateLocalPlayer
end if
end preOpenStack

on mergGKLocalPlayerAuthenticated pPlayerID,pPlayerAlias,pPlayerDisplayName
-- load state for this player
end mergGKLocalPlayerAuthenticated

Compatibility and Support

Introduced

LiveCode 8.0

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?